@layout("/common/_form.html",{js:["/assets/goodsInfo/goodsInfo_add.js"],plugins:["ue"]}){

<form class="layui-form" id="goodsInfoForm" lay-filter="goodsInfoForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="id" type="hidden"/>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">商品名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="name" name="name" placeholder="请输入商品名称" type="text" class="layui-input"
                                   lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">商品分类<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <!--                            <input id="type" name="type" placeholder="请输入商品分类" type="text" class="layui-input" lay-verify="required" required/>-->
                            <select id="type" name="type" class="layui-input">
                                <option value="">分类</option>
                                <option value="日用">日用</option>
                                <option value="食物">食物</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">商品属性<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input type="radio" name="attribute" value="热门商品" title="热门商品">
                            <input type="radio" name="attribute" value="非热门商品" title="非热门商品" checked="">
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">排序<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="sort" name="sort" placeholder="请输入排序" type="text" class="layui-input"
                                   lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">所处区域<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <!--                            <input id="region" name="region" placeholder="请输入所处区域" type="text" class="layui-input" lay-verify="required" required/>-->
                            <select id="region" name="region" class="layui-input" lay-verify="required" required>
                                <option value="">区域</option>
                                <option value="洋马镇">洋马镇</option>
                                <option value="合德镇">合德镇</option>
                                <option value="临海镇">临海镇</option>
                                <option value="千秋镇">千秋镇</option>
                                <option value="四明镇">四明镇</option>
                                <option value="海河镇">海河镇</option>
                                <option value="海通镇">海通镇</option>
                                <option value="兴桥镇">兴桥镇</option>
                                <option value="新坍镇">新坍镇</option>
                                <option value="长荡镇">长荡镇</option>
                                <option value="盘湾镇">盘湾镇</option>
                                <option value="特庸镇">特庸镇</option>
                                <option value="黄沙港镇">黄沙港镇</option>
                                <option value="经济开发区">经济开发区</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">封面图片<span style="color: #ff0000;">*</span></label>
                        <!--                        <div class="layui-input-block">-->
                        <!--                            <input id="coverImg" name="coverImg" placeholder="请输入封面图片" type="text" class="layui-input" lay-verify="required" required/>-->
                        <!--                        </div>-->
                        <div class="layui-input-block">
                            <button type="button" class="layui-btn" id="uploadPhoto">
                                <i class="layui-icon">&#xe67c;</i>上传图片
                            </button>
                            <span style="color: #90111A"> &nbsp;&nbsp;友情提示：为防止图片失真，推荐使用750*500像素图片！</span>
                            <div class="layui-upload-list">
                                <img class="layui-upload-img" id="photoView"
                                     style="height: 150px;width: 150px">
                                <p style="width: 150px;" align="center">图片预览</p>
                            </div>
                            <input id="coverImg" name="coverImg" type="hidden" class="layui-input" lay-verify="required"
                                   required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">首页简介<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <!--                            <input id="indexIntroduction" name="indexIntroduction" placeholder="请输入首页简介" type="text"  maxlength=50 class="layui-input" lay-verify="required" required/>-->
                            <textarea placeholder="请输入首页列表中简单介绍" maxlength=50 id="indexIntroduction"
                                      name="indexIntroduction" class="layui-textarea" lay-verify="required"
                                      required/></textarea>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">顶部图片<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <button type="button" class="layui-btn layui-btn-normal" id="uploadImagesTitle">上传多图片
                            </button>
                            <span style="color: #90111A"> &nbsp;&nbsp;友情提示：为防止图片失真，推荐使用750*500像素图片！</span>
                            <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                                预览图：
                                <div class="layui-upload-list" id="imagesTitlePrew" style="width: 375px"></div>
                            </blockquote>
                            <input id="topImgUrl" name="topImgUrl" type="hidden" class="layui-input"
                                   lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">电话<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="phone" name="phone" placeholder="请输入电话" type="text" class="layui-input"
                                   lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">地址<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="address" name="address" placeholder="请输入地址" type="text" class="layui-input"
                                   lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">经度<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="longitude" name="longitude" placeholder="请输入经度" type="text" class="layui-input"
                                   lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">维度<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="latitude" name="latitude" placeholder="请输入维度" type="text" class="layui-input"
                                   lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">简介<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <!--                            <input id="introduction" name="introduction" placeholder="请输入简介" type="text" class="layui-input" lay-verify="required" required/>-->
                            <script id="introduction" name="introduction" type="text/plain"></script>

                        </div>
                    </div>
                    <!--                    <div class="layui-inline layui-col-md12">-->
                    <!--                        <label class="layui-form-label">轮播图片<span style="color: red;">*</span></label>-->
                    <!--                        <div class="layui-input-block">-->
                    <!--                            <input id="luboid" name="luboid" placeholder="请输入轮播图片" type="text" class="layui-input" lay-verify="required" required/>-->
                    <!--                        </div>-->
                    <!--                    </div>-->
                    <!--                    <div class="layui-inline layui-col-md12">-->
                    <!--                        <label class="layui-form-label">浏览量<span style="color: red;">*</span></label>-->
                    <!--                        <div class="layui-input-block">-->
                    <!--                            <input id="pageview" name="pageview" placeholder="请输入浏览量" type="text" class="layui-input" lay-verify="required" required/>-->
                    <!--                        </div>-->
                    <!--                    </div>-->
                    <!--                    <div class="layui-inline layui-col-md12">-->
                    <!--                        <label class="layui-form-label">创建时间<span style="color: red;">*</span></label>-->
                    <!--                        <div class="layui-input-block">-->
                    <!--                            <input id="createTime" name="createTime" placeholder="请输入创建时间" type="text" class="layui-input" lay-verify="required" required/>-->
                    <!--                        </div>-->
                    <!--                    </div>-->
                    <!--                    <div class="layui-inline layui-col-md12">-->
                    <!--                        <label class="layui-form-label">创建人<span style="color: red;">*</span></label>-->
                    <!--                        <div class="layui-input-block">-->
                    <!--                            <input id="createUser" name="createUser" placeholder="请输入创建人" type="text" class="layui-input" lay-verify="required" required/>-->
                    <!--                        </div>-->
                    <!--                    </div>-->
                    <!--                    <div class="layui-inline layui-col-md12">-->
                    <!--                        <label class="layui-form-label">更新时间<span style="color: red;">*</span></label>-->
                    <!--                        <div class="layui-input-block">-->
                    <!--                            <input id="updateTime" name="updateTime" placeholder="请输入更新时间" type="text" class="layui-input" lay-verify="required" required/>-->
                    <!--                        </div>-->
                    <!--                    </div>-->
                    <!--                    <div class="layui-inline layui-col-md12">-->
                    <!--                        <label class="layui-form-label">更新人<span style="color: red;">*</span></label>-->
                    <!--                        <div class="layui-input-block">-->
                    <!--                            <input id="updateUser" name="updateUser" placeholder="请输入更新人" type="text" class="layui-input" lay-verify="required" required/>-->
                    <!--                        </div>-->
                    <!--                    </div>-->
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>

</form>

@}